home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / DTML-RETURN.STX < prev    next >
Encoding:
Text File  |  2000-10-12  |  645 b   |  32 lines

  1. return: Returns data
  2.  
  3.     The 'return' tag stops executing DTML and returns data. It mirrors
  4.     the Python 'return' statement.
  5.  
  6.   Syntax
  7.  
  8.     'return' tag syntax::
  9.  
  10.       <dtml-return ReturnVariable|expr="ReturnExpression">
  11.  
  12.     Stops execution of DTML and returns a variable or expression. The
  13.     DTML output is not returned. Usually a return expression is more
  14.     useful than a return variable. Python Methods largely obsolete
  15.     this tag.
  16.  
  17.   Examples
  18.  
  19.     Returning a variable::
  20.  
  21.       <dtml-return result>    
  22.       
  23.     Returning a Python dictionary::
  24.  
  25.       <dtml-return expr="{'hi':200, 'lo':5}">
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.